void VSGeometry::SetMeshDate(VSMeshDate * pMeshDate)
{
	m_pMeshDate = pMeshDate;
}
VSMeshDate * VSGeometry::GetMeshDate()const
{
	return m_pMeshDate;
}
inline unsigned int VSGeometry::GetActiveNum()
{
	if(m_pMeshDate)
	{

		if (m_pMeshDate->GetIndexBuffer() && m_pMeshDate->IsClodMesh())
		{
			m_uiActiveNum  = m_pMeshDate->GetActiveNum();	
		}
		else
		{
			if(m_pMeshDate->GetIndexBuffer() && (m_uiActiveNum == VSMAX_INTEGER))
				m_uiActiveNum  = m_pMeshDate->GetActiveNum();
			else if(m_uiActiveNum == VSMAX_INTEGER)
				return 0;

			
		}
		return m_uiActiveNum;	
	
	}
	return 0;
}
inline bool VSGeometry::SetActiveNum(unsigned int uiActiveNum)
{
	if(uiActiveNum > GetTotleNum())
		return 0;
	m_uiActiveNum = uiActiveNum;
	return 1;

}
inline unsigned int VSGeometry::GetTotleNum()const
{
	if(m_pMeshDate)
	{
		return m_pMeshDate->GetTotleNum();
	}
	return 0;

}
inline unsigned int VSGeometry::GetMeshDateType()
{
	if(m_pMeshDate)
	{
		return m_pMeshDate->GetMeshDateType();
	}
	return  VSMeshDate::MDT_MAX;
}
